]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Add class to menu so border-radius can be set in stylesheet
authorSam Hewitt <snwh@gnome.org>
Mon, 5 Feb 2024 16:34:15 +0000 (13:04 -0330)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 5 Feb 2024 22:57:01 +0000 (22:57 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>

data/theme/gnome-shell-sass/widgets/_calendar.scss
data/theme/gnome-shell-sass/widgets/_message-list.scss
js/ui/dateMenu.js

index 43f69d991a272b8a8e5db4c54656cf501f036c3a..c6faec6709ecd0456c0001994a55ca7b6483a7f7 100644 (file)
@@ -1,10 +1,15 @@
 /* Date/Time Menu */
 
 // overall menu
+
 #calendarArea {
   padding: $base_margin;
 }
 
+.datemenu-popover {
+  border-radius: $base_border_radius * 1.5 + $base_padding * 3;
+}
+
 // calendar menu side column
 .datemenu-calendar-column {
   spacing: $base_padding;
index 31027be543534617e69eb03eb23b36de800e8d99..07800c1503a15d2db74123e364686fcc9ad96e9e 100644 (file)
@@ -37,7 +37,7 @@
 // do-not-disturb + clear button
 .message-list-controls {
   // NOTE: remove the padding if notification_bubble could remove margin for drop shadow
-  padding: $base_padding;
+  padding: $base_padding $base_padding * 2;
   spacing: $base_padding;
   @extend %heading;
 
index 2b695209aa5096e82dfc03ab96d40eece3b57c23..d731c10346bd53731c30e59d2a325e24aea4390b 100644 (file)
@@ -890,6 +890,7 @@ class DateMenuButton extends PanelMenu.Button {
         // For some minimal compatibility with PopupMenuItem
         bin._delegate = this;
         this.menu.box.add_child(bin);
+        this.menu.box.add_style_class_name('datemenu-popover');
 
         hbox = new St.BoxLayout({name: 'calendarArea'});
         bin.add_child(hbox);